package com.fxl.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "user")
@ApiModel(description = "用户信息实体")
public class User {
    @Id
    @ApiModelProperty(value = "用户ID", name = "id", notes = "用户的唯一标识符")
    private Integer id;

    @Column(name = "username")
    @ApiModelProperty(value = "用户名", name = "username", notes = "用户登录名，需唯一", required = true)
    private String username;

    @Column(name = "password")
    @ApiModelProperty(value = "密码", name = "password", notes = "用户登录密码", required = true)
    private String password;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
